package com.he.statemodel.state.concretestate;

import com.he.statemodel.context.WorkContext;
import com.he.statemodel.state.WorkState;

public class RestState implements WorkState {
    @Override
    public void handle(WorkContext workContext) {
        if (workContext.getWorkHour() < 22) {
            System.out.println("晚上10点了，开始休息！");
        }
    }
}
